package Proxy.DynamicProxy;

/**
 * Created by svenl on 7/10/2017.
 */
public class Main {

    public static void main(String[] args) {
        Subject realsubject = new RealSubject();
        DynamicProxy dynamicProxy = new DynamicProxy( realsubject);

        Subject subject = dynamicProxy.createProxy(realsubject);

        System.out.println(  subject.getClass().getName() );

        subject.rent();
        subject.hello("Sven");
    }
}
